package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.StrategyComment;
import cn.wolfcode.trip.base.domain.TravelComment;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TravelCommentMapper {

    int insert(TravelComment record);

    TravelComment selectByPrimaryKey(Long id);

    List<TravelComment> selectForList(QueryObject qo);

    int updateByPrimaryKey(TravelComment record);

    int selectCommentMeNumById(Long id);

    List<TravelComment> selectCommentMesInfo(QueryObject qo);

    void updateIsReadById(@Param("travelId") List<Long> travelId, @Param("isRead") boolean isRead);

    List<Long> selectCommentMesTravel(Long id);
}